package exercise;

public class CompareNumber {

    public static void main(String[] args) {
        int a = 1;
        int b = 11;
        int c = 200;
        int max = a > b ? (a > c ? a : c) : (b > c ? b : c);//最大
        int min = a > b ? (b > c ? c : b) : (a < c ? a : c);//最小
        
        int middle = a > b ? (b < c ? b : (a > c ? c : a)) : (a > c ? a : (c > b ? b : c));//中间
        System.out.println(max + ">" + middle + ">" + min);
    }

}
